package com.nantai.jiafang.nantaijiafang.nt5s.Http;


import com.nantai.jiafang.nantaijiafang.nt5s.bean.Uperror_Item;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/5/9 0009.
 */
public interface HttpService {


    //登录
    @GET("AppHandler_Test.ashx")
    Call<List<Uperror_Item>> getdata(@QueryMap Map<String, String> params);

    @Multipart
    @POST("AppHandler_Test.ashx")
    Call<ResponseBody> updata(@PartMap Map<String, RequestBody> map, @Part List<MultipartBody.Part> parts);
    @Multipart
    @POST("AppHandler_Test.ashx")
    Call<ResponseBody> modifyy(@PartMap Map<String, RequestBody> map, @Part List<MultipartBody.Part> parts);

    @Multipart
    @POST("AppHandler_Test.ashx")
    Call<ResponseBody> solve(@PartMap Map<String, RequestBody> map);

}
